package lab01;

/**
 * Created by ASUS on 2017/10/18.
 */
public class Test13 {
    public static void main(String[] args) {
        int unit;
        int decade;
        int hundreds;
        for(int i = 100 ;i <= 1000;i++){
            hundreds = i/100;
            decade = i%100/10;
            unit = i%10;
            if(hundreds*hundreds*hundreds+
                    decade*decade*decade+unit*unit*unit
                    == i){
                System.out.println(i);
            }
        }
    }

}
